<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/11/9
  Time: 22:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>商品展示</h1>
    <table>
        <thead>
            <tr>
                <th>序号</th>
                <th>商品ID</th>
                <th>商品名称</th>
                <th>商品价格</th>
            </tr>


        </thead>
        <tbody>
            <%--<c:forea--%>
            <c:forEach items="${products}" var="obj" varStatus="status">
                <tr>
                    <td>${status.count}</td>
                    <td>${obj.id}</td>
                    <td>${obj.name}</td>
                    <td>${obj.price}</td>
                </tr>
            </c:forEach>
        </tbody>

    </table>
</body>
</html>
